'Declaration Public Overloads Overrides NotOverridable Function GetFieldValueAsync(Of T)( _ ByVal ordinal As Integer, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of T)
'Usage Dim instance As TdDataReader Dim ordinal As Integer Dim cancellationToken As CancellationToken Dim value As Task(Of T) value = instance.GetFieldValueAsync(Of T)(ordinal, cancellationToken)
public override Task<T> GetFieldValueAsync<T>( int ordinal, CancellationToken cancellationToken )
public: Task<T^>^ GetFieldValueAsyncgeneric<typename T> ( int ordinal, CancellationToken cancellationToken ) override
Parameters
- ordinal
- Column ordinal (see TdDataReader.GetOrdinal).
- cancellationToken
- A Threading.CancellationToken used to indicate that the asynchronous operation should be canceled.
Type Parameters
- T
- The data type of the value to be returned.
Return Value
Returns the value of the specified field represented as a T type.